<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<title>College Fee Collection</title>
		<link rel="stylesheet" href="../../css/styles.css" type="text/css" />
	</head>
	<script type="text/javascript">
	  
	  function showEnterForm(){
	      document.getElementById("enterDiv").style.display = "block";
	      document.getElementById("viewDiv").style.display = "none";
	  }
	  
	  function showSearchForm(){
	      document.getElementById("enterDiv").style.display = "none";
	      document.getElementById("viewDiv").style.display = "block";
	  }
	</script>
<body>
	<div id="container">
		<jsp:include page="/jsp/menu.jsp" />
		
                <div style="height:420px;">
			  		<div class="path">
						<br><a href="home.htm"> Home </a>-&gt;
						<a> Account </a>-&gt;
						<a> Fee </a>-&gt;
						<a> Fee Collection</a>-&gt;
						<a href="collegeFee.htm"> College Fee </a>
					</div>
			  		<div id="leftDiv" style="margin-left: 10px;margin-top: 20px">
			   			<b>College Fee Collection</b><br><br>
						<fieldset style="height:80px; width:200px;background: #FFF;">
						<table cellpadding=20>
						<tr>
							<td>
								<a href="javascript:showSearchForm()">
			                        	View College Fee 
								</a>
							</td>
						</tr>
						<tr>
							<td>
			                 	<a href="javascript:showEnterForm()">
			                        	Enter College Fee 
			                 	</a>
							</td>
						</tr>
						</table>
						</fieldset>
			  		</div>
				</div>
                 <div id="viewDiv" class="maininfo" style="display: none">
                	 <form:form method="POST" action="getCollegeFeeCollection.htm" commandName="collegeFee">
						<div id="searchForm">
							<div class="lable">
								College Fee Collection
							</div>
							<table>
									<tr>
										<th> Search By Division </th>
										<td><form:input path="studDivision" />
									</tr>
									<tr>
										<th> Search By Student Name </th>
										<td><form:input path="studName" /></td>
									</tr>
									<tr>
										<th>Search By Student Id </th>
										<td><form:input path="studId" /></td>
									</tr>
									<tr>
										<th> Search By Pending Fees </th>
										<td><form:input path="studPendingFee" /></td>
									</tr>
									<tr>
										<th></th>
										<td><input type ="Submit" value="Search" size=10></td>
									</tr>
								<spring:nestedPath path="isSearch">  
	                              <input type="hidden" name="isSearch" value="true" />  
	                            </spring:nestedPath>   
							</table>
						</div>
						<div id="viewTable" style="display: none">
									<table border="1" cellpadding="2">
									<tr>
										<th rowspan=2> Division</th>
										<th rowspan=2> Student Id</th>
										<th rowspan=2> Student Name </th>
										<th colspan=3> Interim Fee </th>
										<th colspan=3> University Fee </th>
										<th colspan=3> Mode Of Payment </th>
										<th rowspan=2> Cheque/DD No. </th>
										<th rowspan=2> Date of Payment </th>
										<th rowspan=2> Pending Fee (Y/N) </th>
									</tr>
									<tr>
										<th>paid</th>
										<th>Left</th>
										<th><b>Receipt no.</th>
										<th>paid</th>
										<th>Left</th>
										<th><b>Receipt no.</th>
										<th>By Cheque </th>
										<th>By DD </th>
										<th>By Cash </th>
												
									</tr>
									<tr>
										<td rowspan=3> A </td>
										<td rowspan=3> A1001</td>
										<td rowspan=3> Shefali Kute</td>
										<td> 10000</td>
										<td> 30000</td>
										<td> 12345</td>
										<td> 5000</td>
										<td> 5000</td>
										<td> 23456</td>	
										<td> Cheque</td>
										<td> - </td>	
										<td> - </td>
										<td> 2011</td>	
										<td> 11/06/2007 </td>	
										<td> Y </td>	
									</tr>
									<tr>
										
										<td> 10000</td>
										<td> 20000</td>
										<td> 22345</td>
										<td> 5000</td>
										<td> 5000</td>
										<td> 23456</td>	
										<td> Cheque</td>
										<td> - </td>	
										<td> - </td>
										<td> 2011</td>	
										<td> 11/06/2007 </td>	
										<td> Y </td>	
									</tr>
									<tr>
										
										<td> 20000</td>
										<td> 00000</td>
										<td> 112345</td>
										<td> 5000</td>
										<td> 5000</td>
										<td> 23456</td>	
										<td> Cheque</td>
										<td> - </td>	
										<td> - </td>
										<td> 2011</td>	
										<td> 11/06/2007 </td>	
										<td> N</td>	
									</tr>
							</table>
						</div>
					</form:form>
				  </div>
			 	<div id="enterDiv" class="maininfo" style="display: none">
			 		<form:form method="POST" action="saveCollegeFeeCollection.htm" commandName="collegeFee">
			 			<div class="lable">
								College Fee Collection
						</div>
						<table>
							<tr>
								<th> Division : </th>
								<td><form:input path="studDivision" /></td>
							</tr>
							<tr>
								<th> Student Id : </th>
								<td><form:input path="studId" /></td>
							</tr>
							<tr>
								<th> Student Name : </th>
								<td><form:input path="studName" /></td>
							</tr>
							<tr>
								<th></th>
								<th> Interim Fee </th>
							</tr>
							<tr>
								<th>Paid : </th>
								<td><form:input path="studInterimPaid" /></td>
							</tr>
							<tr>
								<th>Left : </th>
								<td><form:input path="studentInterimLeft" /></td>
							</tr>
							<tr>
								<th>Receipt No. : </th>
								<td><form:input path="studInterimReceiptNo" /></td>
							</tr>
							<tr>
								<th></th>
								<th> University Fee </th>
							</tr>
							<tr>
								<th>Paid : </th>
								<td><form:input path="studUniversityPaid" /></td>
							</tr>
							<tr>
								<th>Left : </th>
								<td><form:input path="studUniversityLeft" /></td>
							</tr>
							<tr>
								<th>Receipt No. :</th>
								<td><form:input path="studUniversityReceiptNo" /></td>
							</tr>
							<tr>
								<th>Mode of Payment :</th>
								<td><form:select path="studModeOfPayment">
										<form:option value="-">--Select--</form:option>
										<form:option value="By Cash">By Cash</form:option>
										<form:option value="By Cheque">By Cheque</form:option>
										<form:option value="By DD" >By DD</form:option>
									</form:select></td>
							</tr>
							<tr>
								<th>Cheque no. : </th>
								<td><form:input path="studChequeNo" /></td>
							</tr>
							<tr>
								<th>DD no. : </th>
								<td><form:input path="studDDNo" /></td>
							</tr>
							<tr>
								<th>Date of Payment :</th>
								<td><form:input path="studPamentDate" /></td>
							</tr>
							
							<tr>	
								<th> Pending Fee (Y/N) : </th>
								<td><form:input path="studPendingFee" /></td>
							</tr>
							<tr>	
								<th></th>
								<td><input type=submit name="submit"  value="Submit"></td>
							</tr>
						</table>
					</form:form>
				</div>
		
	<div id="footer">
		<jsp:include page="/jsp/footer.jsp" />
	</div>
	</div>
</body>
</html>